﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiami.lib {
    class GetXiamiMusicName {
        protected Album _album;



        public GetXiamiMusicName() {
            this._album = new Album();
        }

        public void run() {
            this.downloadWebPage();
            this.extractAlbumName();
            this.extractAlbumNameId();
            this.extractAlbumCover();
            this.extractAlbumCoverId();
            this.extractAlbumArtist();
            this.extractAlbumArtistId();
            this.extractAlbumDescription();
            this.extractAlbumMusic();
            this.newDir();
            this.saveAlbumInfoToFile();
            this.finishChangeTask();
        }

        /// <summary>
        /// 开始下载给定的Url链接
        /// </summary>
        public void downloadWebPage() {
           //start Download Web Page 

        }

        public void extractAlbumName() {
            //start Extract Album Name Info    
        }

        public void extractAlbumNameId() {
            //start Extract Album NameId Info    
        }

        public void extractAlbumCover() {
            //strat extract album cover info
        }

        public void extractAlbumCoverId() {
            //start Extract Album CoverId 
        }

        public void extractAlbumArtist() {
            //start Extract Album Artist Info
        }

        protected void extractAlbumArtistId() {
            //start Extract Album ArtistId Info
        }

        protected void extractAlbumDescription() {
            //start Extract Album Description Info
        }

        protected void extractAlbumMusic() {
            //start Extract Album Music Info
        }

        protected void newDir() {
            //start New Album Dir
        }

        protected void saveAlbumInfoToFile() {
            //start Save Album Info To File
        }

        protected void finishChangeTask() {
            //start Finish Change Task
        }

    }
}
